import java.util.LinkedList;
import java.util.Queue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-23
 * Time: 9:29
 */
public class Test1 {
    public static void main(String[] args) {
        Queue<Integer> queue1=new LinkedList<>();
        queue1.offer(1);
        queue1.offer(11);
        queue1.offer(12);
        queue1.offer(14);
        System.out.println(queue1);

        System.out.println(queue1.size());

        System.out.println(queue1.peek());

        System.out.println(queue1.poll());
        queue1.poll();
        queue1.poll();
        queue1.poll();
        System.out.println(queue1.isEmpty());
    }


}
